package com.xxxx.server.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xxxx.server.pojo.Admin;
import com.xxxx.server.service.IAdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * wsy 2021-11-29 15:43
 * 在线聊天
 **/
@Controller
@RequestMapping("/chat")
@Api(tags = "在线聊天")
public class ChatController {
    @Autowired
    private IAdminService iAdminService;

    @GetMapping
    @ApiOperation("获取所有操作员")
    public List<Admin> getAllAdmins(String keyword){
        return iAdminService.getAllAdmins(keyword);
    }
}
